package vip.bblog.cunadmin.modules.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 操作日志
 * </p>
 *
 * @author yy
 * @since
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_log")
@ApiModel(value="SysLog对象", description="操作日志")
public class SysLog implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "日志id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "日志内容")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "日志描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "操作类型 1.添加，2修改 3删除")
    @TableField("handleType")
    private Integer handleType;

    @ApiModelProperty(value = "操作人")
    @TableField("username")
    private String username;

    @ApiModelProperty(value = "操作时间 ")
    @TableField("ctime")
    private String ctime;

}
